package com.qiangesoft.design.creational.singleton;

/**
 * 静态内部类单例
 */
public class InnerClassSingleton {

    private InnerClassSingleton() {
    }

    /**
     * 私有化的静态内部类
     */
    private static class SingletonHolder {
        private static final InnerClassSingleton INSTANCE = new InnerClassSingleton();
    }

    public static InnerClassSingleton getInstance() {
        return SingletonHolder.INSTANCE;
    }
}